#include "Module.h"

void Module::DispatchEvent( const sf::Event& e )
{
	switch (e.Type)	{
		case sf::Event::Closed:				OnClose(); break;
		case sf::Event::Resized:			OnResize(e); break;
		case sf::Event::KeyPressed:			OnKeyPressed(e); break;
		case sf::Event::KeyReleased:		OnKeyReleased(e); break;
		case sf::Event::MouseButtonPressed:	OnMousePressed(e); break;
		case sf::Event::MouseButtonReleased:OnMouseReleased(e); break;
		default:							OnOtherEvent(e); break;
	}
}